package com.qk.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qk.common.PageResult;
import com.qk.dto.course.CourseDTO;
import com.qk.entity.Course;

import java.util.List;

/**
 * @Author: zhangchuang
 * @Date: 2025/10/13 08:16
 * @Description: 课程服务
 */
public interface CourseService extends IService<Course> {

    PageResult<Course> getCourseByPage(CourseDTO courseDTO);

    boolean addCourse(Course course);

    boolean updateCourseById(Course course);

    List<Course> getBySubject(Integer subject);

    boolean removeCourseById(Integer id);
}
